package com.zecan.blog.service;

import org.quartz.SchedulerException;

/**
 * @ClassName StarGoodService
 * @Description
 * @date 2022/11/16 12:06
 * @Version 1.0
 */

public interface StarGoodService {

    /**
     * 添加点赞逻辑
     * @param userId
     * @param articleId
     */
    Boolean addGoodByUserIdAndArticleId(Integer userId, Integer articleId) throws SchedulerException;

    /**
     * 添加收藏逻辑
     * @param userId
     * @param articleId
     */
    Boolean addStarByUserIdAndArticleId(Integer userId, Integer articleId);


    void unStarByUserIdAndArticleId(Integer userId, Integer articleId);
}
